﻿using AutoMapper;
using SmartCity.BasicData.Api.DTOs;
using SmartCity.BasicData.Domain.Entities;

namespace SmartCity.BasicData.Api
{
    public class MyMapper:Profile
    {
        public MyMapper()
        {
                //映射
                CreateMap<DepartmentDto,DepartmentModel>().ReverseMap(); 
                CreateMap<AccountFromDepartmentDTO,AccountModel>().ReverseMap(); 
        }
    }
}
